public class test_the_sum {
    public static void main(String[] args) {
        // 定义一个数组来存储销售额
        int[] sales = {16, 26, 36, 6, 100};

        // 初始化总销售额为0
        int totalSales = 0;

        // 遍历数组并求和
        for (int i = 0; i < sales.length; i++) {
            totalSales += sales[i];
        }

        // 输出总销售额
        System.out.println("部门总销售额为：" + totalSales);
    }
}
